package com.hjx.plugins

import org.gradle.api.Plugin
import org.gradle.api.Project

class HelloPlugin1 implements Plugin<Project> {
	void apply(Project project) {

		// Add the 'hello' extension object
		def extension = project.extensions.create('hello1', HelloPluginExtension)

		project.task('hello1') {
//			println delegate.toString()
//			println owner
//			println thisObject
//			println this
			description = "plugin demo, show how to add task hello1 to project ${project.name}"
			println delegate.description
//			group = 'build'
			doLast {
//				println 'Hello from the HelloPlugin'
				println extension.message.get()
			}
		}
	}
}
